﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace YasharEl.Infrastructure.EntityModel
{
    /// <summary>
    /// Marks an object as a domain object which identity is determined by an identifier.
    /// </summary>
    public interface IGenericEntity<PrimaryKeyType> : IEquatable<IGenericEntity<PrimaryKeyType>>
    {
        /// <summary>
        /// Gets the unique identifier of this entity.
        /// </summary>
        PrimaryKeyType Id { get; }
    }
}
